Product : ISaGRAF V3

Date    : 5-March-1996

File    : Sfctofbd.How to call a Function in an SFC action.htm

Subject : How to call an FBD function from an SFC program

Keywords: FBD - function - SFC - program - Call FBD function

____________________________________________________________________

Below is a short example of a link between SFC and FBD programs.

An "N" (normal) action in an SFC step is described as a function in FBD.

1- declare the programs:

[Sequential] Caller (SFC)

[Function] Called (FBD)

2- define the parameters of the FBD function (just one output)

'called' (output parameter must have the name of the program) (type: ANA)

3- This is the body of the FBD function (called):

4- This is the programming of the SFC step:

____________________________________________________________________

Copyright © 1996-2009 ICS Triplex ISaGRAF Inc. All rights reserved.